package com.jxau.service.impl;

import com.jxau.entity.Article;
import com.jxau.entity.view.IndexArticles;
import com.jxau.mapper.ArticleMapper;
import com.jxau.service.ArticleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.ArrayList;
@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public ArrayList<IndexArticles> queryAllArticles() {
        return articleMapper.queryAllArticles();
    }
}
